package com.nms.handler;

import com.nms.se.SearchEngine;
import com.nms.se.regulation.Regulation;

/**
 * 抓取新闻的处理类
 * 
 * @author Administrator
 *
 */
public class GrabNewsHandler {

	private SearchEngine se;

	public GrabNewsHandler() {
		se = new SearchEngine();
	}
	/**
	 * 启动抓取
	 */
	public void grab(){
		se.start();
	}
	public void add(String url,String lr,String cr){
		se.add(new Regulation(url,lr, cr));
	}
	public void add(Regulation r){
		se.add(r);
	}
}
